package com.liddhome.entity;

import java.util.Date;
import java.util.List;

import com.liddhome.util.DateUtil;

/**
 * 留言实体
 * @author lidd
 *
 */
public class Message {

	private String id; // 编号
	private String userIp; // 用户IP
	private String nickName; // 用户名称
	private String email; // 用户名称
	private String content; // 留言内容
	private Date messageDate; // 留言日期
	private Integer state; // 审核状态  0 待审核 1 审核通过 2 审核未通过
	private String pid;//父id
	private List<Message> children;//评论的回复，或回复的回复
	private String stars;//点赞数
	
	
	public String getStars() {
		return stars;
	}
	public void setStars(String stars) {
		this.stars = stars;
	}
	public String getPid() {
		return pid;
	}
	public void setPid(String pid) {
		this.pid = pid;
	}
	public List<Message> getChildren() {
		return children;
	}
	public void setChildren(List<Message> children) {
		this.children = children;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getUserIp() {
		return userIp;
	}
	public void setUserIp(String userIp) {
		this.userIp = userIp;
	}
	public String getNickName() {
		return nickName;
	}
	public void setNickName(String nickName) {
		this.nickName = nickName;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public String getMessageDate() {
		return DateUtil.formatDate(messageDate, "yyyy-MM-dd HH:mm:ss");
	}
	public void setMessageDate(Date messageDate) {
		this.messageDate = messageDate;
	}
	public Integer getState() {
		return state;
	}
	public void setState(Integer state) {
		this.state = state;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	
	
}

